<?php
namespace app\api\model;

use app\model\Base;

class UnionPointsLog extends Base
{
    public function getTypeFormatAttr($value)
    {
        return '商家积分';
    }

    public function getAmountAttr($value)
    {
        $str = '';
        if($value > 0){
            $str = '+' . $value;
        }else{
            $str = '-' . $value;
        }
        return $str;
    }
}